/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.camelspit.preludetoarmageddon.entity;

/**
 *
 * @author DMK
 */
public class Money {
    long money;
    public Money() {
        money = 0;
    }
    //Might not need all these functions,
    //Used for determining how much something is worth
    //passed to and from characters, really just a value
    //perhaps takes a Money instance and adds that money to current
    //money for character money values?? 
    public long getMoney() {return money;}
    public void removeMoney(long lessMoney) {
        money -= lessMoney;
    }
    public void removeMoney(int lessMoney) {
        money -= (long)lessMoney;
    }
    public void addMoney(long plusMoney) {
        money += plusMoney;
    }
    public void addMoney(int plusMoney) {
        money += (long)plusMoney;
    }

    /**
     * Sets the money value. Should only be necessary during
     * player loading.
     * 
     * @param money
     */
    public void setMoney(int money) {
        this.money = money;
    }
}
